let baseURL = {};

if (import.meta.env.MODE === "development") {
  // 本机调试
  baseURL = {
    authorityMng: "/authority-mng",
    businessFlow: "/business-flow",
  };
} else if (import.meta.env.MODE === "production") {
  const url = window.location.origin;
  //线上测试环境
  if (url == "https://testtraffic.ahggwl.com") {
    baseURL = {
      businessFlow: "https://testtraffic.ahggwl.com/business-flow",
      authorityMng: "https://testacl.ahggwl.com/authority-mng",
    };
  }
  // 线上生产环境
  if (url == "https://traffic.ahggwl.com") {
    baseURL = {
      businessFlow: "https://traffic.ahggwl.com/business-flow",
      authorityMng: "https://acl.ahggwl.com/authority-mng",
    };
  }
} else {
}

export default baseURL;
